package xyz.poke.business.tool.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 迫壳
 * @date 2024/3/19 20:33
 */
@Data
public class TreeVo implements Serializable {

    private NodeVo currentNode;

    private List<TreeVo> children;

    @Data
    public static class NodeVo implements Serializable {

        private String code;

        private String name;

        private String fatherCode;

    }

    @SuppressWarnings("unUsed")
    public String getValue() {
        return currentNode.getCode();
    }

    @SuppressWarnings("unUsed")
    public String getLabel() {
        return currentNode.getName();
    }

}
